package com.bigflexlib.ds.op
{
	import com.bigflexlib.ds.container.IRContainer;
	import com.bigflexlib.ds.container.bag.IWBag;

	public class AbstractContainerToBagOp extends AbstractContainerOp
	{
		
		protected var oBag:IWBag;
		
		public function AbstractContainerToBagOp(iContainer:IRContainer, oBag:IWBag)
		{
			super(iContainer);
			
			this.oBag = oBag;
		}
	
	
	
		
		protected function oBag_autoUpdate( enable:Boolean ):void
		{
			
			if ( enable )
				oBag.autoUpdateFlag.enable( );
			else
				oBag.autoUpdateFlag.disable( );
		
		}	
	
	
	
		override public function dispose():void
		{
			super.dispose( );
			oBag = null;
		}
	
		
		
	}
	
}